<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="__PUBLIC__/lib/jquery/jquery-1.7.2.js" type="text/javascript"></script> 
    <import file="Js.SortSelect" />
    <script type="text/javascript"> 
    
      //	var sl = new SortSelect('form1','sort','search','jumpNum');
          
        function saveSort(){
        	sl.ok();
        	//ThinkAjax.sendForm('form1','__URL__/saveSort/','result');
        	$.post('__URL__/saveSort/',$("#form1").serialize(),function(data){
                var win = parent || window;
                win.LG.showMessage(data, function () { 
                    //win.LG.closeAndReloadParent(null, "Node_index");
                   // window.parent.grid.loadData();
                	 window.parent.mydialog.close();
                });
            });
          }
        function cancel()
        {
            //var win = parent || window;
            //win.LG.closeCurrentTab(null);
       //     window.parent.grid.loadData();
            window.parent.mydialog.close();
        }
    </script> 
   </head>
<body style="overflow-x:hidden; padding:2px;">
<div class="content">
<div class="title"> <eq name="level" value="1">项目</eq><eq name="level" value="2">模块</eq><eq name="level" value="3">操作</eq>排序 </div>

<form method='post' name = 'form1' id="form1">
<div align="center">
<table class="order" cellpadding=0 cellspacing=0 width="350">
<tr><td height="5" colspan="2" ></td></tr>
<tr>
	<td width="75%" align="center">
		<input name="search" type="text">
	</td>
	<td>
		<input type="button" value="查 询" onclick="sl.Search()" />
	</td>
     
</tr>
<tr >
	<td width="75%" align="center">
	<div class="solid">
		<SELECT  name="sort" size="15" width="250">
			<voList name="sortList" id="node" >
				<option value="{$node.id}">{$i}.{$node.title}</option>
			</voList>
		</SELECT>
	</div>
	</td>
	<td width="20" valign="top">
		<div style="margin-top:20px">
			<input type="button" value="第 一" onclick="sl.fnFirst()"  />
			<input type="button" value="上 移" onclick="sl.sortUp()" />
			<input type="button" value="下 移" onclick="sl.sortDown()" />
			<input type="button" value="最 后" onclick="sl.fnEnd()"  />
			<div class="fLeft vMargin"><input type="text" name="jumpNum" size="4"></div>
			<input type="button" value="跳 转" onclick="sl.jump()" class="submit vMargin small " />
		</div>
	</td>
</tr>
<tr>
	<td colspan=2 align="center">
		<div style="width:85%"><input type="hidden" name="seqNoList">
			<input type="hidden" name="ajax" VALUE="1">
			<input type="button" value="确 定" onclick="saveSort()" />
			<input type="button" value="取 消" onclick="cancel())" />
		</div>
	</td>
</tr>
</table>
</div>
</form>
<script language="JavaScript">
<!--
var sl = new SortSelect('form1','sort','search','jumpNum');
//-->
</script>
</div>
</body>
</html>
